﻿<Window x:Class="Rootfus.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:rui="clr-namespace:RoofusUIControls;assembly=RoofusUIControls"
    Title="Rootfus" Height="400" Width="800" Name="dude">
    <DockPanel>
        <Menu Name="MainMenu" Height="25" DockPanel.Dock="Top">
            <MenuItem Header="File">
                <MenuItem Header="New" Click="MenuItemNew_Click"/>
                <MenuItem Header="Open..." Click="MenuItemOpen_Click" />
                <MenuItem Header="Save" Command="ApplicationCommands.Save"/>
                <MenuItem Header="Save As..." Click="MenuItemSaveAs_Click" />
                <MenuItem Header="Quit" Click="MenuItemQuit_Click"/>
            </MenuItem>
            <MenuItem Header="Insert" Name="_insert_menu"
                      ItemsSource="{Binding ElementName=dude, Path=SurfaceItemAddinTokens}"
                      Click="_insert_menu_Click">
                <MenuItem.ItemTemplate>
                    <DataTemplate>
                        <Label Content="{Binding Name}"/>
                    </DataTemplate>
                </MenuItem.ItemTemplate>
            </MenuItem>
        </Menu>
        <rui:RootfusProgrammingSurface Margin="0" DockPanel.Dock="Right" Width="Auto" Height="Auto" Name="_surface"
                                       />
    </DockPanel>
</Window>
